package com.ztesoft.report.utils;

import com.ztesoft.report.utils.excel.ExcelUtils;
import com.ztesoft.report.utils.excel.handler.ExportHandler;
import com.ztesoft.report.utils.excel.pojo.ExportItem;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import javax.servlet.http.HttpServletResponse;
import java.io.OutputStream;
import java.util.List;

/**
* Excel导出需要的类
* @author 陈俊锋[296954345@qq.com]
* @date 2018/7/5
*/
public class ExcelDataExport {
    private List<?> data;
    private List<ExportItem> exportItems;
    private HSSFWorkbook workbook;
    private int rowNumberIndex;
    private int row;
    private int startIndex;
    private String sheetName;
    private ExportHandler handler;
    private HttpServletResponse mResponse;
    private OutputStream out;

    private ExcelUtils excelUtils;

    public ExcelUtils getExcelUtils() {
        return excelUtils;
    }

    public void setExcelUtils(ExcelUtils excelUtils) {
        this.excelUtils = excelUtils;
    }

    private boolean success;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public List<?> getData() {
        return data;
    }

    public void setData(List<?> data) {
        this.data = data;
    }

    public List<ExportItem> getExportItems() {
        return exportItems;
    }

    public void setExportItems(List<ExportItem> exportItems) {
        this.exportItems = exportItems;
    }

    public HSSFWorkbook getWorkbook() {
        return workbook;
    }

    public void setWorkbook(HSSFWorkbook workbook) {
        this.workbook = workbook;
    }

    public int getRowNumberIndex() {
        return rowNumberIndex;
    }

    public void setRowNumberIndex(int rowNumberIndex) {
        this.rowNumberIndex = rowNumberIndex;
    }

    public int getRow() {
        return row;
    }

    public void setRow(int row) {
        this.row = row;
    }

    public int getStartIndex() {
        return startIndex;
    }

    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    public String getSheetName() {
        return sheetName;
    }

    public void setSheetName(String sheetName) {
        this.sheetName = sheetName;
    }

    public ExportHandler getHandler() {
        return handler;
    }

    public void setHandler(ExportHandler handler) {
        this.handler = handler;
    }

    public HttpServletResponse getmResponse() {
        return mResponse;
    }

    public void setmResponse(HttpServletResponse mResponse) {
        this.mResponse = mResponse;
    }

    public OutputStream getOut() {
        return out;
    }

    public void setOut(OutputStream out) {
        this.out = out;
    }
}
